import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as THREE from 'three'
import router from './router'

// 初始化Three.js
(window as any).THREE = THREE

// 创建Vue应用实例
const app = createApp(App)

// 安装插件
app.use(ElementPlus)
app.use(router)

// 挂载应用
app.mount('#app')

// 添加ipcRenderer监听
window.ipcRenderer?.on('main-process-message', (_event, message) => {
  console.log('消息：' + message)
})